package com.dmy.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dmy.common.base.BaseModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@TableName("e_user")
@Data
public class EUser extends BaseModel {

    private String name;
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "密码不能为空")
    private String password;

    private String photoDefault;

    private String photoBig;

    @TableField(exist = false)
    private String token;

    // 验证码
    @TableField(exist = false)
    private String validaCode;
}